<?php
	session_start();
	date_default_timezone_set('Asia/Ho_Chi_Minh');
	include_once "../classes/thuvienham.php";
	include_once "../classes/caidathethong_bs.php";
	$CaiDat = new caidathethong_bs();
	$DCaiDat = $CaiDat->LayDanhSach();
	$Seconds = $DCaiDat[0]['ThoiGianDangXuat'];
	AutoLogout($Seconds);
	ob_start();
	if(!(IsAD() || IsNVGV()))
	{
		if(IsGV())
			header('Location: ../diemdanh/');
		else
			header('Location: ../');
	}
	IsNVGV();
?>
<!DOCTYPE HTML>
<html lang="en-US">
	<head>
		<title>Quản lý học vụ TTTH</title>
		<meta charset="UTF-8">
		<link rel="shortcut icon" href="/favicon.ico">
		<link rel="stylesheet" type="text/css" href="../css/style_basic.css">
		<link rel="stylesheet" type="text/css" href="../css/style_format.css">
		<link rel="stylesheet" type="text/css" href="../css/style_formatmenu.css">
		<link rel="stylesheet" type="text/css" href="../css/style_startscreen.css">
		<link rel="stylesheet" href="../css/jquery-ui.css">
		
		<link rel="stylesheet" href=".../css/metro-bootstrap.css">
		
		<script src="../js/jquery.min.js"></script>
		<script src="../js/jquery.widget.min.js"></script>
		<script src="../js/metro.min.js"></script>
		<script src="../js/metro-fluentmenu.js"></script>
		
		<script type="text/javascript" src="../js/jquery-2.1.0.min.js"></script>
		<script src="../js/jquery-1.10.2.js"></script>
		<script src="../js/jquery-ui.js"></script>
		<script type="text/javascript">
			$(function() {
				$("#datepicker").datepicker({dateFormat: 'dd/mm/yy', changeMonth: true, changeYear: true});
				$("#datepicker2").datepicker({dateFormat: 'dd/mm/yy', changeMonth: true, changeYear: true});
				$("#datepicker3").datepicker({dateFormat: 'dd/mm/yy', changeMonth: true, changeYear: true});
				$("#datepicker4").datepicker({dateFormat: 'dd/mm/yy', changeMonth: true, changeYear: true});
			});
		</script>
	</head>
	<body  class="metro">
		<div id="Background">
			<div id="WebPageBg">
				<div id="WebPage">
					<div id="Header">
						<div id="Title">
							<span><a style="color:#FFF" href="./">CENTER FOR INFORMATION AND COMMUNICATION TECHNOLOGY</a></span>
						</div>
						<div id="Account">
							<span><?php
								if(isset($_SESSION['USER']))
								{
									if($_SESSION['USER']['MaNguoiDung'] == 'admin')
										echo '<a style="color:#FFF" href="index.php?act=canhan_profile"><b>' . $_SESSION['USER']['HoTen'] . '</b></a>';
									else
										echo '<a style="color:#FFF" href="index.php?act=canhan_profile">' . $_SESSION['USER']['HoTen'] . '</a>';
								}
							?></span>
							<a href="../logout.php" title="Đăng xuất">
								<img src="../data/logout.png" alt="" />
							</a>
						</div>
					</div>
					<div id="Center">
						<div id="Tool">
							<div id="Ribbon">
								<?php
									include_once "../menu/main_menu.php";
								?>
							</div>
							
						</div>
						<div id="Main">
							<div id="Navigation">
								<?php
									include_once "component/navigation.php";
								?>
							</div>
							<div id="Content">
								<?php
									$IncludeFile = isset($_GET['act']) ? $_GET['act'] : "home";
										include $IncludeFile . ".php";
								?>
							</div>
						</div>
					</div>
					<div id="Footer">
						Chương trình quản lý học vụ Trung tâm Tin học - Đại học An Giang<br />
						Thiết kế và phát triển bởi Nguyễn Văn Quy
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
<?php
	ob_end_flush();
?>
